﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Babelfish.Javascript;

namespace Babelfish.JS
{
    /// <summary>
    /// 
    /// </summary>
    public class JsDocument : JsNode, INodeDocument
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="JsDocument"/> class.
        /// </summary>
        /// <param name="jsCode">The js code.</param>
        public JsDocument(string jsCode)
        {
            JsObject = new JsObject { Name = "#JSDOCUMENT", Children = JavascriptParser.Parse(jsCode), Type = JsObjectType.Document };
        }
    }
}
